package cn.buk.alert.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Service;

/**
 *
 * @author yfdai
 * @date 16/6/1
 */
public class AlertServiceImpl implements AlertService {


    private final JmsTemplate qinfoJmsTemplate;

    @Autowired
    public AlertServiceImpl(JmsTemplate qinfoJmsTemplate) {
        this.qinfoJmsTemplate = qinfoJmsTemplate;
    }



    @Override
    public void sendQinfoAlert(String textAlert) {
        qinfoJmsTemplate.convertAndSend(textAlert);
    }



}
